from pages.base_page import BasePage


class TidalListPage(BasePage):
    all_tidal = '//*[@resource-id="cool.dingstock.mobile:id/all_brand"]'
    all_brand_title = '//*[@resource-id="cool.dingstock.mobile:id/tv_all_brand"]'
    stussy_button = '//*[@text="Stussy"]'

    def look_all_tidal(self):
        """查看全部潮牌,选择stussy"""
        self.click_xpath(self.all_tidal)
        title = self.get_xpath_text(self.all_brand_title)
        self.click_xpath(self.stussy_button)
        return title
